<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template channel_severity_filter_terminal</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Boost.Log v2">
<link rel="up" href="../../../expressions.html#header.boost.log.expressions.predicates.channel_severity_filter_hpp" title="Header &lt;boost/log/expressions/predicates/channel_severity_filter.hpp&gt;">
<link rel="prev" href="channel__idm45961920420944/subscript_result.html" title="Class subscript_result">
<link rel="next" href="channel__idm45961920391664/channel_visitor.html" title="Struct template channel_visitor">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="channel__idm45961920420944/subscript_result.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../expressions.html#header.boost.log.expressions.predicates.channel_severity_filter_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="channel__idm45961920391664/channel_visitor.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.log.expressions.channel__idm45961920391664"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template channel_severity_filter_terminal</span></h2>
<p>boost::log::expressions::channel_severity_filter_terminal</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../expressions.html#header.boost.log.expressions.predicates.channel_severity_filter_hpp" title="Header &lt;boost/log/expressions/predicates/channel_severity_filter.hpp&gt;">boost/log/expressions/predicates/channel_severity_filter.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ChannelT<span class="special">,</span> <span class="keyword">typename</span> SeverityT<span class="special">,</span> 
         <span class="keyword">typename</span> ChannelFallbackT <span class="special">=</span> <span class="identifier">fallback_to_none</span><span class="special">,</span> 
         <span class="keyword">typename</span> SeverityFallbackT <span class="special">=</span> <span class="identifier">fallback_to_none</span><span class="special">,</span> 
         <span class="keyword">typename</span> ChannelOrderT <span class="special">=</span> <span class="identifier">less</span><span class="special">,</span> 
         <span class="keyword">typename</span> SeverityCompareT <span class="special">=</span> <span class="identifier">greater_equal</span><span class="special">,</span> 
         <span class="keyword">typename</span> AllocatorT <span class="special">=</span> <span class="identifier">use_std_allocator</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="channel__idm45961920391664.html" title="Class template channel_severity_filter_terminal">channel_severity_filter_terminal</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="keyword">bool</span>              <a name="boost.log.expressions.channel__idm45961920391664.result_type"></a><span class="identifier">result_type</span><span class="special">;</span>               <span class="comment">// Function result type. </span>
  <span class="keyword">typedef</span> <span class="identifier">ChannelT</span>          <a name="boost.log.expressions.channel__idm45961920391664.channel_value_type"></a><span class="identifier">channel_value_type</span><span class="special">;</span>        <span class="comment">// Channel attribute value type. </span>
  <span class="keyword">typedef</span> <span class="identifier">ChannelFallbackT</span>  <a name="boost.log.expressions.channel__idm45961920391664.channel_fallback_policy"></a><span class="identifier">channel_fallback_policy</span><span class="special">;</span>   <span class="comment">// Channel fallback policy. </span>
  <span class="keyword">typedef</span> <span class="identifier">SeverityT</span>         <a name="boost.log.expressions.channel__idm45961920391664.severity_value_type"></a><span class="identifier">severity_value_type</span><span class="special">;</span>       <span class="comment">// Severity level attribute value type. </span>
  <span class="keyword">typedef</span> <span class="identifier">SeverityFallbackT</span> <a name="boost.log.expressions.channel__idm45961920391664.severity_fallback_policy"></a><span class="identifier">severity_fallback_policy</span><span class="special">;</span>  <span class="comment">// Severity level fallback policy. </span>

  <span class="comment">// member classes/structs/unions</span>

  <span class="comment">// Channel visitor.</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ArgT<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="channel__idm45961920391664/channel_visitor.html" title="Struct template channel_visitor">channel_visitor</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="keyword">void</span> <a class="link" href="channel__idm45961920391664/channel_visitor.html#boost.log.expressions.channel__idm45961920391664.channel_visitor.result_type"><span class="identifier">result_type</span></a><span class="special">;</span>

    <span class="comment">// <a class="link" href="channel__idm45961920391664/channel_visitor.html#boost.log.expressions.channel__idm45961920391664.channel_visitorconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="channel__idm45961920391664/channel_visitor.html#idm45961920380672-bb"><span class="identifier">channel_visitor</span></a><span class="special">(</span><span class="identifier">channel_severity_filter_terminal</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">ArgT</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="channel__idm45961920391664/channel_visitor.html#idm45961920383216-bb">public member functions</a></span>
    <span class="identifier">result_type</span> <a class="link" href="channel__idm45961920391664/channel_visitor.html#idm45961920382656-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">channel_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// Severity level visitor.</span>

  <span class="keyword">struct</span> <a class="link" href="channel__idm45961920391664/severity_visitor.html" title="Struct severity_visitor">severity_visitor</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="keyword">void</span> <a class="link" href="channel__idm45961920391664/severity_visitor.html#boost.log.expressions.channel__idm45961920391664.severity_visitor.result_type"><span class="identifier">result_type</span></a><span class="special">;</span>

    <span class="comment">// <a class="link" href="channel__idm45961920391664/severity_visitor.html#boost.log.expressions.channel__idm45961920391664.severity_visitorconstruct-copy-destruct">construct/copy/destruct</a></span>
    <a class="link" href="channel__idm45961920391664/severity_visitor.html#idm45961920374192-bb"><span class="identifier">severity_visitor</span></a><span class="special">(</span><span class="identifier">channel_severity_filter_terminal</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                     <span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// <a class="link" href="channel__idm45961920391664/severity_visitor.html#idm45961920376736-bb">public member functions</a></span>
    <span class="identifier">result_type</span> <a class="link" href="channel__idm45961920391664/severity_visitor.html#idm45961920376176-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="channel__idm45961920391664.html#boost.log.expressions.channel__idm45961920391664construct-copy-destruct">construct/copy/destruct</a></span>
  <a class="link" href="channel__idm45961920391664.html#idm45961920357952-bb"><span class="identifier">channel_severity_filter_terminal</span></a><span class="special">(</span><span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                                   <span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                                   <span class="identifier">channel_fallback_policy</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">channel_fallback_policy</span><span class="special">(</span><span class="special">)</span><span class="special">,</span> 
                                   <span class="identifier">severity_fallback_policy</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">severity_fallback_policy</span><span class="special">(</span><span class="special">)</span><span class="special">,</span> 
                                   <span class="identifier">ChannelOrderT</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">ChannelOrderT</span><span class="special">(</span><span class="special">)</span><span class="special">,</span> 
                                   <span class="identifier">SeverityCompareT</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">=</span> <span class="identifier">SeverityCompareT</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="channel__idm45961920391664.html#idm45961920366032-bb">public member functions</a></span>
  <span class="keyword">void</span> <a class="link" href="channel__idm45961920391664.html#idm45961920365472-bb"><span class="identifier">add</span></a><span class="special">(</span><span class="identifier">channel_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="channel__idm45961920391664.html#idm45961920362912-bb"><span class="identifier">set_default</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ContextT<span class="special">&gt;</span> <span class="identifier">result_type</span> <a class="link" href="channel__idm45961920391664.html#idm45961920361056-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">ContextT</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="channel__idm45961920391664.html#idm45961920352000-bb">private member functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ArgT<span class="special">&gt;</span> 
    <span class="keyword">void</span> <a class="link" href="channel__idm45961920391664.html#idm45961920351424-bb"><span class="identifier">visit_channel</span></a><span class="special">(</span><span class="identifier">channel_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">ArgT</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="channel__idm45961920391664.html#idm45961920347088-bb"><span class="identifier">visit_severity</span></a><span class="special">(</span><span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
                      <span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idm46846466721056"></a><h2>Description</h2>
<div class="refsect2">
<a name="idm46846466720640"></a><h3>
<a name="boost.log.expressions.channel__idm45961920391664construct-copy-destruct"></a><code class="computeroutput">channel_severity_filter_terminal</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><a name="idm45961920357952-bb"></a><span class="identifier">channel_severity_filter_terminal</span><span class="special">(</span><span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&amp;</span> channel_name<span class="special">,</span> 
                                 <span class="identifier">attribute_name</span> <span class="keyword">const</span> <span class="special">&amp;</span> severity_name<span class="special">,</span> 
                                 <span class="identifier">channel_fallback_policy</span> <span class="keyword">const</span> <span class="special">&amp;</span> channel_fallback <span class="special">=</span> <span class="identifier">channel_fallback_policy</span><span class="special">(</span><span class="special">)</span><span class="special">,</span> 
                                 <span class="identifier">severity_fallback_policy</span> <span class="keyword">const</span> <span class="special">&amp;</span> severity_fallback <span class="special">=</span> <span class="identifier">severity_fallback_policy</span><span class="special">(</span><span class="special">)</span><span class="special">,</span> 
                                 <span class="identifier">ChannelOrderT</span> <span class="keyword">const</span> <span class="special">&amp;</span> channel_order <span class="special">=</span> <span class="identifier">ChannelOrderT</span><span class="special">(</span><span class="special">)</span><span class="special">,</span> 
                                 <span class="identifier">SeverityCompareT</span> <span class="keyword">const</span> <span class="special">&amp;</span> severity_compare <span class="special">=</span> <span class="identifier">SeverityCompareT</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>Initializing constructor. </li></ol></div>
</div>
<div class="refsect2">
<a name="idm46846466689472"></a><h3>
<a name="idm45961920366032-bb"></a><code class="computeroutput">channel_severity_filter_terminal</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idm45961920365472-bb"></a><span class="identifier">add</span><span class="special">(</span><span class="identifier">channel_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> channel<span class="special">,</span> 
         <span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> severity<span class="special">)</span><span class="special">;</span></pre>Adds a new element to the mapping. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idm45961920362912-bb"></a><span class="identifier">set_default</span><span class="special">(</span><span class="keyword">bool</span> def<span class="special">)</span><span class="special">;</span></pre>Sets the default result of the predicate. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ContextT<span class="special">&gt;</span> <span class="identifier">result_type</span> <a name="idm45961920361056-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">ContextT</span> <span class="keyword">const</span> <span class="special">&amp;</span> ctx<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Invokation operator. </li>
</ol></div>
</div>
<div class="refsect2">
<a name="idm46846466661968"></a><h3>
<a name="idm45961920352000-bb"></a><code class="computeroutput">channel_severity_filter_terminal</code> private member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ArgT<span class="special">&gt;</span> 
  <span class="keyword">void</span> <a name="idm45961920351424-bb"></a><span class="identifier">visit_channel</span><span class="special">(</span><span class="identifier">channel_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> channel<span class="special">,</span> <span class="identifier">ArgT</span> <span class="keyword">const</span> <span class="special">&amp;</span> arg<span class="special">,</span> 
                     <span class="keyword">bool</span> <span class="special">&amp;</span> res<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Visits channel name. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idm45961920347088-bb"></a><span class="identifier">visit_severity</span><span class="special">(</span><span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> left<span class="special">,</span> 
                    <span class="identifier">severity_value_type</span> <span class="keyword">const</span> <span class="special">&amp;</span> right<span class="special">,</span> <span class="keyword">bool</span> <span class="special">&amp;</span> res<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Visits severity level. </li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2007-2021 Andrey Semashev<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>).
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="channel__idm45961920420944/subscript_result.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../expressions.html#header.boost.log.expressions.predicates.channel_severity_filter_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="channel__idm45961920391664/channel_visitor.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
